home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / GFX / DLL / MkOs
Text File  |  1995-09-04  |  1KB  |  67 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Rectangle    \
  4.             o.CLG    \
  5.             o.Plot    \
  6.             o.VDU    \
  7.             o.Wait    \
  8.             o.Write0    \
  9.             o.WriteN    \
  10.  
  11.  
  12. LibName        =    GFX
  13.  
  14.  
  15.  
  16. # Template makefile to make all .o files
  17. # for a DeskLib sublibrary. Compilation 
  18. # is for static linking inside a DLL.
  19.  
  20. # The macro $(ObjectFiles) should be set at the 
  21. # start of this file, to be a space-separated
  22. # list of object files.
  23. # This is done by 'Makatic'.
  24.  
  25. # The macro $(LibName) should also be set at the 
  26. # start of this file, to be the name of the 
  27. # DeskLib sublibrary.
  28.  
  29. # Compiler flags, These can be anything. 
  30. # All essential flags (eg CC -zM
  31. # are included in the macro $(CC).
  32. #
  33. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  34. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  35.  
  36. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  37. ASM        =    ObjAsm $(ASMFlags)
  38.  
  39.  
  40. # -------------------------------------------------------
  41. # Everything below here should probably not be changed...
  42. # -------------------------------------------------------
  43.  
  44. # Here's what we want to make...
  45. #
  46. All:    $(ObjectFiles)
  47.  
  48.  
  49. # Rule for compiling C source code for a Straylight dynamically-linked library.
  50.  
  51. VPATH = @.^
  52.  
  53. .SUFFIXES:    .o .c .s
  54.  
  55. .c.o:
  56.     $(CC) -o $@ $<
  57.  
  58. .s.o:
  59.     $(ASM) $(ASMFlags) -from $< -to $@
  60.  
  61.  
  62.  
  63. # Dynamic dependencies:
  64. o.Rectangle:    ^.c.Rectangle
  65. o.Rectangle:    DeskLib:h.GFX
  66.